package apis

import (
	"github.com/gin-gonic/gin"
	"github.com/go-admin-team/go-admin-core/sdk/api"
	"tuowei.com/app/admin/service"
	"tuowei.com/app/admin/service/dto"
)

type ApiAppVersion struct {
	api.Api
}

func (e ApiAppVersion) GetAppVersion(c *gin.Context)  {
	s := service.SysConfig{}
	err := e.MakeContext(c).
		MakeOrm().
		Errors
	if err != nil {
		e.Logger.Error(err)
		e.Error(500, err, err.Error())
		return
	}
	var req *dto.SysConfigByKeyReq
	var response *dto.GetSysConfigByKEYForServiceResp
	req.ConfigKey = "app_download_url"
	s.GetWithKey(req,response)



}
